package cliVet.conexao;

import cliVet.DAO.AnimalDAO;
import cliVet.DAO.ServicosDAO;

public class DAOFactory {

	public static AnimalDAO criaAnimalDAO() {
		AnimalDAO animalDAO = new AnimalDAO();
		animalDAO.setSession(HibernateUtil.getSessionFactory()
				.getCurrentSession());

		return animalDAO;
	}

	public static ServicosDAO criaServicosDAO() {
		ServicosDAO servicosDAO = new ServicosDAO();
		servicosDAO.setSession(HibernateUtil.getSessionFactory()
				.getCurrentSession());

		return servicosDAO;
	}

}
